VindiPaymentGateways\WCCartSubscriptionLimiter S

Total Complexity 28
Dependencies 1
Dependents 1
Total lines 142
Lines of code 102
Logical lines of code 63
Comment lines 0
Methods 11
Properties 0

Methods 11

Method Rating Maintainability Complexity Lines of code
is_cart_mixed_with_subscription()
S
58 4 16
limit_same_subscriptions()
S
59 4 15
subscription_exceeds_limit()
S
61 4 12
limit_duplicate_subscriptions_cart_update()
S
62 3 12
disallow_subscription_single_product_cart()
S
62 3 12
get_subscription_count()
S
64 3 10
count_subscriptions_in_cart()
S
65 3 9
__construct()
S
82 1 3
init_hooks()
S
69 1 6
is_virtual_product()
S
81 1 3
customize_billing_neighborhood_field()
S
75 1 4